package com.mf.springboot.backend.userAuth.service.role;

import com.mf.springboot.backend.mybatisModule.entity.roles.TSysUserToRole;
import com.mf.springboot.backend.mybatisModule.entity.roles.TSysUserToRoleExample;
import com.mf.springboot.backend.mybatisModule.mapper.TSysUserToRoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by java_jony on 2017/9/19.
 */
@Service
public class UserToRoleService{
    @Resource
    private TSysUserToRoleMapper userToRoleMapper;


    public int deleteByPrimaryKey(String id) {
        return userToRoleMapper.deleteByPrimaryKey(id);
    }

    public int insert(TSysUserToRole record) {
        return userToRoleMapper.insert(record);
    }

    public List<TSysUserToRole> selectByExample(TSysUserToRoleExample example) {
        return userToRoleMapper.selectByExample(example);
    }

    public TSysUserToRole selectByPrimaryKey(String id) {
        return userToRoleMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKey(TSysUserToRole record) {
        return userToRoleMapper.updateByPrimaryKey(record);
    }
}
